#!/usr/bin/env bash

# 阿拉伯数字18作为异常退出码
check='[ $? -eq 0 ] || exit 18'

eval "$check" && echo '更改时区为上海'
eval "$check" && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

eval "$check" && echo '安装基础工具和依赖'
eval "$check" && apt update
eval "$check" && apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libpcre3-dev libtool automake autoconf cmake perl wget curl git

eval "$check" && echo "初始化完成！！！"




